package com.rms.recruit_management_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "administrators")
@Schema(description = "管理员类")
public class Administrator implements Serializable {
    // 管理员 ID
    @TableId(value = "admin_id",type = IdType.AUTO)
    @Schema(description = "管理员 ID")
    private Integer adminId;
    // 用户名
    @TableField(value = "username")
    @Schema(description = "用户名")
    private String username;
    // 密码
    @TableField(value = "password")
    @Schema(description = "密码")
    private String password;
    // 管理员姓名
    @TableField(value = "full_name")
    @Schema(description = "管理员姓名")
    private String fullName;
    // 邮箱地址
    @TableField(value = "email")
    @Schema(description = "邮箱地址")
    private String email;
    // 联系电话
    @TableField(value = "phone")
    @Schema(description = "联系电话")
    private String phone;
    // 角色
    @TableField(value = "role")
    @Schema(description = "角色")
    private String role;
    // 最后登录时间
    @TableField(value = "last_login_time")
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
    // 是否启用
    @TableField(value = "is_enabled")
    @Schema(description = "是否启用")
    private Integer isEnabled;
    // 创建时间
    @TableField(value = "create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}
